
pkgname=libxslt
pkgver=1.1.32
pkgrel=1
pkgdesc="XML stylesheet transformation library"
arch=('x86_64')
url="http://xmlsoft.org/XSLT/"
license=('custom')
depends=('libxml2' 'libgcrypt')
makedepends=('python2')
options=('!libtool')
source=("ftp://xmlsoft.org/libxslt/${pkgname}-${pkgver}.tar.gz"
        'xml_config.patch')
md5sums=('1fc72f98e98bf4443f1651165f3aa146'
         '3bc1d8a43f577e7da84f7e3415331f70')

build() {
  cd ${pkgname}-${pkgver}
  # unbreak builds which require libxml2, examples python lxml packages
  #patch -p1 -i ${srcdir}/xml_config.patch
  
  ./configure --prefix=/usr 
  make 
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  
  install -d ${pkgdir}/usr/share/licenses/${pkgname}
  install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/
}
